//
//  YZFasterPopCenterView.h
//  VET
//
//  Created by 刘文靖 on 2018/7/26.
//  Copyright © 2018年 YZ. All rights reserved.
//

#import <UIKit/UIKit.h>
@class YZFasterPopGroup,YZFasterPopItem;
@class YZFasterPopCenterView;

@protocol YZFasterPopCenterViewDataSource <NSObject>
@required
- (NSInteger)numberOfItemsWithCenterView:(YZFasterPopCenterView *)centerView;
- (YZFasterPopItem *)itemWithCenterView:(YZFasterPopCenterView *)centerView item:(NSInteger)item;

@end

@protocol YZFasterPopCenterViewDelegate <NSObject,UIScrollViewDelegate>

@optional
- (void)didSelectItemWithCenterView:(YZFasterPopCenterView *)centerView andItem:(YZFasterPopItem *)item;
- (void)didSelectMoreWithCenterView:(YZFasterPopCenterView *)centerView andItem:(YZFasterPopGroup *)group;
@end

@interface YZFasterPopCenterView : UIScrollView

@property (nonatomic,weak) id<YZFasterPopCenterViewDataSource> dataSource;
@property (nonatomic,weak) id<YZFasterPopCenterViewDelegate> delegate;

- (void)reloadData;

- (void)scrollBack;

- (void)dismis;

@end

#define KBHBRemoveAnimationComplete @"removeAnimation"
